package com.mccken.demo.proxy.cglib.cglib1;

import java.lang.reflect.Method;

import net.sf.cglib.proxy.MethodInterceptor;
import net.sf.cglib.proxy.MethodProxy;

public class MyCglib1 implements MethodInterceptor {
	@Override
	public Object intercept(Object obj, Method method, Object[] args, MethodProxy proxy) throws Throwable {
		System.out.println("intercept before:" + method.getName());

		Object o = proxy.invokeSuper(obj, args);

		System.out.println("intercept after");
		return o;
	}
}